//
//  Array+Extension.swift
//  YangFoundation
//
//  Created by yuyang on 2021/12/21.
//

import Foundation

extension Array {
    public func safeElementAtIndex(_ index: Int) -> Element? {
        guard index < self.count else {
            return nil
        }
        return self[index]
    }
}
